CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1)
PROJECT(EKF_UTIL)
#SET(APPEND CMAKE_MODULE_PATH "/home/moonx/soft/g2o/cmake_modules/")
FIND_PACKAGE(Eigen3 QUIET)
FIND_PACKAGE(OpenCV QUIET)
INCLUDE_DIRECTORIES(
    ${EIGEN3_INCLUDE_DIR}
    ${OpenCV_INCLUDE_DIR}
    ${PROJECT_SOURCE_DIR}
    )
ADD_DEFINITIONS(-std=c++11)

AUX_SOURCE_DIRECTORY(src SRC_FILE)
AUX_SOURCE_DIRECTORY(test EXAMPLE_FILE)
ADD_EXECUTABLE(${PROJECT_NAME} ${SRC_FILE} ${EXAMPLE_FILE})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${OpenCV_LIBS})
